package com.common.tlds;

import freemarker.template.TemplateMethodModelEx;
import freemarker.template.TemplateModelException;

import java.util.List;

/**
 * 自定义方法
 */
public class FtlMethodTemplate implements TemplateMethodModelEx{
    @Override
    public Object exec(List list) throws TemplateModelException {
        if(list.size() < 2){
            throw new TemplateModelException("错误的参数");
        }
        return "";
    }
}
